﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;

namespace sistem
{
    public partial class DirektorKontrola : UserControl
    {
        public DirektorKontrola()
        {
            InitializeComponent();
        }
        public DirektorKontrola(Direktor direktor)
        {
            InitializeComponent();
            //pictureBox1.Image = direktor.Slika;
            System.Reflection.Assembly myAssembly = System.Reflection.Assembly.GetExecutingAssembly();
            Stream myStream = myAssembly.GetManifestResourceStream("source.33.jpg");

            pictureBox1.BackgroundImage = new Bitmap(myStream);
            pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
            label2.Text = direktor.Ime;
            label4.Text = direktor.Prezime;
            label6.Text = direktor.DatumRodjenja.ToString();
            label8.Text = direktor.Adresa;
            label10.Text = direktor.Telefon;
            label12.Text = direktor.Email;
            label14.Text = direktor.Nacionalnost;
            //Label16.Text = profesor.fak;
            //label18.Text = direktor.DatumZaposlenja;
            //label20.Text = direktor.DatumZaposlenja;
            //Label22.Text = profesor.;
           // Label24.Text = profesor;
            label16.Text = "Implementirati";
            label18.Text = direktor.DatumZaposlenja.ToString();
            label20.Text = Convert.ToString(DateTime.Now.Year - direktor.DatumZaposlenja.Year);
            label22.Text = "Implementirati";
            label24.Text = "implementirati";
            label26.Text = direktor.PocetakSluzbe.ToString();
        }
    }
}
